<form id="group_form" name="group_form" class="container_form">
	<label>
		<span class="flavel">Name</span>
		<input type="text" name="group_name"
			value="{{$group.name}}"
            dojoType="dijit.form.TextBox"
            trim="true"
            style="width: 205px;" />
	</label>
	<label>
		<span class="flavel">Beschreibung</span>
		<input type="text" name="group_desc"
			value="{{$group.desc}}"
            dojoType="dijit.form.TextBox"
            trim="true"
            style="width: 205px;" />
	</label>
	<label>
		<span class="flavel">Mitglieder</span>
		<select class="fselect"
			name="group_members"
			size="10"
			style="float:left; width: 205px;">
			{{foreach from=$members item=object}}
			<option value="{{$object.id}}">{{$object.name}}</option>
			{{/foreach}}
		</select>
		{{if $group.is_writeable}}
		<a class="remove" href="javascript:group_user_delete({{$group.id}});" title="Benutzer entfernen">
			<span>remove user</span>
		</a>
		{{/if}}
		<p style="clear: both;"></p>
	</label>
	<label>
		<span class="flavel"></span>
		<select dojoType="dijit.form.FilteringSelect"
			name="group_user_add"
			autocomplete="true"
			style="width: 155px;">
			{{foreach from=$available_users item=object}}
			<option value="{{$object.id}}">{{$object.name}}</option>
			{{/foreach}}
		</select>
		<button dojoType=dijit.form.Button type="button"
				onclick="group_user_add({{$group.id}});"
				{{if !$group.is_writeable}}disabled="disabled"{{/if}}>
			Add
		</button>
	</label>
	<p>Erstellt: {{$group.t_create}}<br />
	Geändert: {{$group.t_lastwrite}}</p>
	<button dojoType=dijit.form.Button type="button"
			onclick="group_update({{$group.id}});"
			{{if !$group.is_writeable}}disabled="disabled"{{/if}}>
		Speichern
	</button>
	<button dojoType=dijit.form.Button type="button"
			onclick="group_delete({{$group.id}});"
			{{if !$group.is_writeable}}disabled="disabled"{{/if}}>
		Löschen
	</button>
</form>